<div class="container"> 
<!-- middle -->
<div id="middle" class="cols2">
	
    <div class="title">
    	<h1><?=$post['post_title']?></h1>
        <div class="post-meta">
	    	<span class="tags">
				<a href="#"><?=$post['post_day'].' '.$post['post_month'].' '.$post['post_year']?></a>
				<a href="#"><?=$post['user_name']?></a>
			</span> 
				<a href="#" class="author"><?=anchor('/','Update News')?></a> <span class="separator">|</span>
				<a href="#" class="author"><?=anchor('/','Remove News')?></a> <span class="separator">|</span>
			    <!--<a href="#comments" class="anchor">256 Comments</a> <span class="separator">|</span> in <a href="posts-list.html">Technology</a>-->
	    </div>
    </div>  
    
    <div class="content" role="main">
       
    	<article class="post-detail">            
			<div class="entry">
            
	            <div class="frame_box">
	            <img src="<?=base_url().thumb(postImage($post['post_image']),seoUrl($post['post_title']),620,412)?>" alt="">
	            </div>
					<?=$post['post_content']?>		
				
            <div class="clear"></div>            
            </div>
            
            	<!-- author description -->
                <div class="author-box">
                    <div class="author-description">
                		<div class="author-image"><img src="images/temp/author_image.jpg" alt=""><span class="author">the author</span></div>
                      	<div class="author-text">
                            <p>Britain’s phone <a href="#"><?=$post['user_name']?></a> hacking claimed another casualty on Monday when Yates, the deputy of London’s Metropolitan Police, resigned a day after the country’s top police officer quit and Rebekah Brooks, the former chief </p>
                        </div>
                        <div class="clear"></div>
                	</div>        
                </div>
                <!--/ author description -->
                
        </article>
					
						<!-- add comment -->
                        <div class="add-comment" id="addcomments">
                            <h3>Have something to say?</h3>
                            
                            <div class="comment-form">
                            <form action= "#" method="post" id="commentForm">
                                
                                <div class="row field_text alignleft">
                                    <label class="label_title"><strong>Name</strong></label>
                                    <input type="text" name="name" value="" class="inputtext input_middle required">
                                </div>
                                
                                <div class="row field_text alignleft omega">
                                    <label class="label_title"><strong>Email</strong> (never published)</label>
                                    <input type="text" name="email" value="" class="inputtext input_middle required">
                                </div>
								
                                <div class="clear"></div>   
                                
                                                     
                                
                                <div class="row field_textarea">
                                    <label class="label_title"><strong>Comment</strong></label>
                                    <textarea cols="30" rows="10" name="message" class="textarea textarea_middle required"></textarea>
                                </div>
                                
                                <div class="row rowSubmit">
                                <input type="submit" value="Say it" class="btn-submit">
                                </div>
                            </form>
                            </div>
                        </div>
						<!--/add comment -->
				
					<!-- post comments -->
					<div class="comment-list" id="comments">
                           
                        	<h2>256 Readers Commented</h2>
                            
                            <a href="#addcomments" class="link-add-comment anchor">Join discussion</a>
                            
                            <ol>
								<li class="comment">
                                
                                    <div class="comment-body">
                                    <div class="comment-avatar">
                                    	<div class="avatar"><img src="images/temp/gavatar_1.jpg" alt=""></div>
                                    </div>    
                                    <div class="comment-text">
                                    	<div class="comment-author">
                                        	<a href="#" class="link-author">Bogdan</a> <a href="#" class="link-reply">Reply</a> <span class="comment-date">on May 25, 2012</span>
                                        </div>
                                        <div class="comment-entry">
                                        Britain’s phone hacking claimed another casualty on Monday when Yates, the deputy of an London’s Metropolitan Police, resigned a day after the country’s top police officer quit and Rebekah Brooks, the former chief executive of Rupert Murdoch’s News International end
                                      </div>
                                    </div>
                                    <div class="clear"></div>
                                    </div>
                                    
                                    <!-- comment reply -->
                                    <ul class="children">
                                        <li class="comment">
                                            <div class="comment-body">
                                                <div class="comment-avatar">
                                                    <div class="avatar"><img src="images/temp/gavatar_2.jpg" alt=""></div>
                                                </div> 
                                                <div class="comment-text">
                                                	<div class="comment-author">
			                                        <span class="link-author">Dimi Baitanciuc</span> <a href="#addcomment" class="link-reply">reply</a> <span class="comment-date">on June 2, 2012</span>
			                                        </div>
                                                    <div class="comment-entry">
                                                    Rebekah Brooks, the former chief executive of Rupert Murdoch’s News International was arrested on suspicion of illegally intercepting phone calls and bribing the police.
                                                    </div>
                                                </div>
                                                <div class="clear"></div>
                                            </div>
                                            
                                    		
                                        </li>
                                        
                                    </ul>
                                    <!--/ comment reply -->
                                </li>
                                
                                <li class="comment">
                                    <div class="comment-body">
                                
                                    <div class="comment-avatar">
                                    	<div class="avatar"><img src="images/temp/gavatar_3.jpg" alt=""></div>
                                    </div> 
                                    <div class="comment-text">
                                   		<div class="comment-author">
			                            	<a href="#" class="link-author">Sergiu Bagrin</a> <span class="isauthor">Author</span> <a href="#addcomment" class="link-reply">reply</a> <span class="comment-date">on June 8, 2012</span>
			                            </div>                                        
                                        <div class="comment-entry">
                                        Britain’s phone hacking claimed another casualty on Monday when Yates, the deputy of London’s Metropolitan Police, resigned a day after the country’s top police officer quit and 
                                        </div>
                                    </div>
                                    <div class="clear"></div>
                                    </div>
                                </li>
                                
                                <li class="comment">
                                    <div class="comment-body">
                                
                                    <div class="comment-avatar">
                                    	<div class="avatar"><img src="images/temp/gavatar_4.jpg" alt=""></div>
                                    </div> 
                                    <div class="comment-text">
                                   		<div class="comment-author">
			                            	<a href="#" class="link-author">Superman</a> <a href="#addcomment" class="link-reply">reply</a> <span class="comment-date">on June 23, 2012</span>
			                            </div>                                        
                                        <div class="comment-entry">
                                        Monday when Yates, the deputy of an London’s Metropolitan Police, resigned a day after the country’s top police officer quit and Rebekah Brooks, the former CEO
                                        </div>
                                    </div>
                                    <div class="clear"></div>
                                    </div>
                                </li>
                                
                            </ol>
                        </div>
				<!--/ post comments -->
                
                
        
	</div>
    <!--/ content -->
    
    <!-- sidebar -->
    <div class="sidebar">

		<!-- recent entries -->
    	<div class="widget-container widget_recent_entries">
        	<img src="images/icons/icons_16_date.png" alt="" class="widget_icon">  
			<h3 class="widget-title">Latest News</h3>
                <ul>
                    <?php foreach($latest as $rec): ?>
					<li>
                        <a href="<?=postUrl($rec['post_date'],$rec['post_id'],$rec['post_title'])?>"><img src="<?=base_url('assets/images/temp/post_thumb_1.jpg')?>" alt="" class="thumbnail"></a> 
                        <div class="recent_entry"><a href="<?=postUrl($rec['post_date'],$rec['post_id'],$rec['post_title'])?>" class="link-name"><?=$rec['post_title']?></a></div>
                    </li>
					<?php endforeach;?>
				</ul>
        </div>
    	<!--/ recent entries -->
        
        <!-- recent entries -->
    	<div class="widget-container widget_recent_entries">
        	<img src="images/icons/icons_16_date.png" alt="" class="widget_icon">  
			<h3 class="widget-title">Latest Information</h3>
                <ul>
                    <?php foreach($latest2 as $rec): ?>
					<li>
                        <a href="<?=postUrl($rec['post_date'],$rec['post_id'],$rec['post_title'])?>"><img src="<?=base_url('assets/images/temp/post_thumb_1.jpg')?>" alt="" class="thumbnail"></a> 
                        <div class="recent_entry"><a href="<?=postUrl($rec['post_date'],$rec['post_id'],$rec['post_title'])?>" class="link-name"><?=$rec['post_title']?></a></div>
                    </li>
					<?php endforeach;?>
				</ul>
        </div>
    	<!--/ recent entries -->
                    
    </div>
    <!--/ sidebar -->
    
    <div class="divider"></div>
    
    
        	
</div>
<!--/ middle --> 
</div>
<!--/ container --> 